package com.zs4sdk.activity.resetPassword;

import android.content.Intent;
import android.os.Bundle;
import android.os.Message;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.zs4sdk.activity.Zs4GameBaseActivity;
import com.zs4sdk.common.Extra;
import com.common.library.data.CommonEventHandler;
import com.common.library.data.CommonHandle;
import com.common.library.data.EventHandler2Get;
import com.common.library.entity.JSONResultEntity;
import com.common.library.util.ActivityHelper;
import com.common.library.util.EncryptHelper;
import com.common.library.util.HandlerUtil;
import com.common.library.util.Helper;
import com.common.library.util.ParamsHelper;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.json.JSONException;
import org.json.JSONObject;

import java.util.ArrayList;


/**
 * function: 重置密码
 * <p/>
 * Created by Jancy_Weng on 2015/8/20.
 */
//com.zs4sdk.activity.resetPassword.Zs4GameResetPasswordActivity
public class Zs4GameResetPasswordActivity extends Zs4GameBaseActivity implements View.OnClickListener {

    public static final String TAG = Zs4GameResetPasswordActivity.class.getSimpleName();
    private Zs4GameResetPassword mZs4GameResetPassword;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //View view = ActivityHelper.getLayoutResId("zs4gamelayout_act_reset_password");
        int viewId =  ActivityHelper.getLayoutResId("zs4gamelayout_act_reset_password");
        View maiView = LayoutInflater.from(this).inflate(viewId,null);
        setContentView(maiView);
        if(Extra.isComplex()){
            mZs4GameResetPassword = new Zs4GameResetPasswordFt(this,maiView);
        }else{
            mZs4GameResetPassword = new Zs4GameResetPassword(this,maiView);
        }

        init();

    }


    @Override
    protected void init() {
        super.init();

        setTopTitle(ActivityHelper.getStringResId("zs4gamestring_title_reset_password"));
        mZs4GameResetPassword.init();
    }



    @Override
   protected int getLeftBtnType() {
        return TYPE_LEFTBTN_BACK;
    }

    @Override
    protected int getRightBtnType() {
        return TYPE_RIGHTBTN_INVISIBLE;
    }


}
